package com.demo.resourcecode.qualifier;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class Persion {

	@Autowired
	@Qualifier("cat")
	private Animal animal;

	public void action(){
		System.out.println("persion action");
		animal.action();
	}

}
